
package ltd.letao.mall.dao;

import ltd.letao.mall.entity.LeTaoMallShoppingCartItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LeTaoMallShoppingCartItemMapper {
    int deleteByPrimaryKey(Long cartItemId);

    int insert(LeTaoMallShoppingCartItem record);

    int insertSelective(LeTaoMallShoppingCartItem record);

    LeTaoMallShoppingCartItem selectByPrimaryKey(Long cartItemId);

    LeTaoMallShoppingCartItem selectByUserIdAndGoodsId(@Param("leTaoMallUserId") Long leTaoMallUserId, @Param("goodsId") Long goodsId);

    List<LeTaoMallShoppingCartItem> selectByUserId(@Param("leTaoMallUserId") Long leTaoMallUserId, @Param("number") int number);

    int selectCountByUserId(Long leTaoMallUserId);

    int updateByPrimaryKeySelective(LeTaoMallShoppingCartItem record);

    int updateByPrimaryKey(LeTaoMallShoppingCartItem record);

    int deleteBatch(List<Long> ids);
}